/**
 * Created with JetBrains WebStorm.
 * User: Artem
 * Date: 29.03.13
 * Time: 11:34
 * To change this template use File | Settings | File Templates.
 */

(function(){
    var head = document.getElementsByTagName("head")[0];
    var link = document.createElement("link");
    var theme = Ext.util.Cookies.get("theme");
    var url = "extjs/resources/css/ext-all" + theme + ".css";
    link.rel = "stylesheet";
    link.type = "text/css";
    link.href = url;
    head.appendChild(link);
})();
